home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / text / html / HTMLDocument$HTMLReader$CharacterAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.7 KB  |  38 lines

  1. package javax.swing.text.html;
  2.  
  3. import javax.swing.ButtonGroup;
  4. import javax.swing.text.MutableAttributeSet;
  5. import javax.swing.text.html.HTML.Tag;
  6. import javax.swing.text.html.HTMLDocument.HTMLReader;
  7.  
  8. public class HTMLDocument$HTMLReader$CharacterAction extends HTMLDocument.HTMLReader.TagAction {
  9.    // $FF: synthetic field
  10.    private final HTMLDocument.HTMLReader this$1;
  11.  
  12.    public HTMLDocument$HTMLReader$CharacterAction(HTMLDocument.HTMLReader var1) {
  13.       super(var1);
  14.       this.this$1 = var1;
  15.    }
  16.  
  17.    public void end(HTML.Tag var1) {
  18.       this.this$1.popCharacterStyle();
  19.       if (var1 == Tag.FORM) {
  20.          HTMLDocument.access$2(HTMLReader.access$0(this.this$1), (ButtonGroup)null);
  21.       }
  22.  
  23.    }
  24.  
  25.    public void start(HTML.Tag var1, MutableAttributeSet var2) {
  26.       this.this$1.pushCharacterStyle();
  27.       this.this$1.charAttr.addAttribute(var1, var2.copyAttributes());
  28.       if (this.this$1.styleAttributes != null) {
  29.          this.this$1.charAttr.addAttributes(this.this$1.styleAttributes);
  30.       }
  31.  
  32.       if (var1 == Tag.FORM) {
  33.          HTMLDocument.access$2(HTMLReader.access$0(this.this$1), new ButtonGroup());
  34.       }
  35.  
  36.    }
  37. }
  38.